/*-------------------------------------------------------- 
* Module Name : OLSpinnerSurface
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLSpinnerSurface.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* The modal background surface for the spinner (OLSpinner)
* to be rendered on.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLSPINNERSURFACE_H
#define OLSPINNERSURFACE_H

#include <QWidget>
#include "OLModalBackground.h"

class QLabel;

class OLSpinnerSurface : public OLModalBackground
{
    Q_OBJECT
public:
    explicit OLSpinnerSurface(const QString caption, QWidget *parent = 0);

    void setCaption(const QString& caption);

private slots:
    void handleAppResize();
    void handleViewResize(const QSize& size);


private:
    QLabel* m_spinnerCaption;
};

#endif // OLSPINNERSURFACE_H
